<%if (session[:user])%>
<B><%=session[:user].reader_name%></B>&nbsp;|&nbsp;
<%=link_to '我的信息',:controller => 'reader', :action => 'edit' , :id => session[:user]%>&nbsp;|&nbsp;
<%= link_to '退出',:controller => 'login',:action => 'logout'%>
<%else%>
&nbsp;
<%=link_to '登录', :controller => 'login' , :action => 'login'%>
<%end%>